<template>
	<view class="goodsLayout">
		<view class="wrapper">
			<view class="title">共3件商品</view>
			<view class="list">
				<view class="row" v-for="(item,i) in 3" :key="i">
					<view class="left">
						<image src="../../static/images/dog.jpg" mode="aspectFill" class="img"></image>
						<view class="name">卫龙笑面筋</view>
					</view>
					<view class="center">x3</view>
					<view class="right">
						<view class="big">￥55.8</view>
						<view class="small">￥33.3</view>
					</view>
				</view>
				
			</view>
			
			<view class="total">
				<text>
					已优惠￥10.5
				</text> 合计 <text class="big">￥85.8</text>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		name:"goods-list",
		data() {
			return {
				
			};
		}
	}
</script>

<style lang="scss" scoped>
	.goodsLayout{
		.wrapper{
			background: #fff;
			padding:30rpx;
			margin-bottom:25rpx;
			border-radius: 15rpx;
			.title{
				font-size: 38rpx;
			}
			.list{			
				.row{
					@include flex-box();
					padding:25rpx 0;
					.left{
						@include flex-box();
						width: 400rpx;
						.img{
							width: 64rpx;
							height: 64rpx;
							border-radius: 10rpx;
						}
						.name{
							padding-left:15rpx;
							flex:1;
							font-size: 30rpx;
						}
					}
					.center{
						width: 100rpx;
						text-align: center;					
					}
					.right{
						flex:1;
						text-align: right;
						font-weight: bold;
						.big{
							font-size: 34rpx;						
						}
						.small{
							font-size: 22rpx;
							color:$text-font-color-3;
							text-decoration: line-through;
						}
					}
				}
			}
			.total{
				padding:30rpx 0;
				text-align: right;
				font-size: 30rpx;
				color:$text-font-color-3;
				.big{
					font-size: 36rpx;
					font-weight: bold;
					color:#000;
				}
			}
		}
	}
</style>